﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QResizeEvent>
#include <QLabel>
#include <QPropertyAnimation>
#include "treenavigation.h"
#include <QStackedWidget>
#include "homewidget.h"
#include "strconverthex.h"
#include "Str2unicodeutf8.h"
#include "SlidingStackedWidget.h"
#include <QMap>
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
# pragma execution_character_set("utf-8")
#endif
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void resizeEvent(QResizeEvent *event) override;
    bool eventFilter(QObject * obj, QEvent * event) override;
    QLabel *lable1;
    QLabel *lable2;
    QLabel *lable3;
    QMap<QString, QWidget*>pageMap;
    QPropertyAnimation *pAnimation;
    TreeNavigation *m_treenavigation;
    QStackedWidget *m_stackwidget;
    SlidingStackedWidget *m_slidingstackwidget;
    homeWidget *m_homePage;
    StrConvertHex *m_str2hex;
    Str2UnicodeUtf8 *m_str2utf;
    int old_x;
    int old_y;
private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
